Skip to content

Fix Compile gRPC call hangs when there is a lot of output #2171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 8, 2023

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented May 5, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

Fix gRPC Compile call hangs when there is a lot of output.

What is the current behavior?

The gRPC Compile call sometimes hangs forever if there is a lot of output. For details see #2169.

What is the new behavior?

The gRPC Compile call always completes.

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

The same fix has been applied to all gRPC calls with streaming in output, even if there is no evidence of problems with it.

Fix #2169

@cmaglie cmaglie self-assigned this May 5, 2023
@cmaglie cmaglie added type: imperfection Perceived defect in any part of project topic: gRPC Related to the gRPC interface labels May 5, 2023
@cmaglie cmaglie added this to the Arduino CLI 0.33.0 milestone May 5, 2023
@cmaglie cmaglie requested a review from per1234 May 5, 2023 16:07
@cmaglie cmaglie changed the title Fix Compile gRPC call closing when there is a lot of output Fix Compile gRPC call hangs when there is a lot of output May 5, 2023
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Patch coverage: 38.35% and project coverage change: -0.02 ⚠️

Comparison is base (ede5a78) 62.55% compared to head (e6da5f8) 62.53%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2171      +/-   ##
==========================================
- Coverage   62.55%   62.53%   -0.02%     
==========================================
  Files         223      223              
  Lines       19460    19488      +28     
==========================================
+ Hits        12173    12187      +14     
- Misses       6196     6210      +14     
  Partials     1091     1091              
Flag Coverage Δ
unit 62.53% <38.35%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
commands/daemon/daemon.go 25.61% <29.68%> (+0.04%) ⬆️
commands/daemon/stream.go 66.66% <100.00%> (+6.24%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cmaglie cmaglie merged commit 855c238 into arduino:master May 8, 2023
@cmaglie cmaglie deleted the fix_send_synchronization branch May 8, 2023 15:50
@per1234 per1234 added the topic: code Related to content of the project itself label Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: gRPC Related to the gRPC interface type: imperfection Perceived defect in any part of project
Projects
None yet
3 participants